package com.itheima.api.client.Comment;

import com.itheima.common.domain.PageResDto;
import com.itheima.common.domain.dto.CommentPageDto;
import com.itheima.common.domain.po.ResComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "blog-web")
public interface CommentClient {
    @PostMapping("/web/owner/comment/page")
    PageResDto<ResComment> getCommentList(@RequestBody CommentPageDto commentPageDto);
    @GetMapping("/web/owner/comment/delete")
    public void deleteCommentByIds(@RequestParam("ids")List<Integer> ids);
}
